{extend name='public/base' /}

{block name="content"}
<style type="text/css">
    html {
        background-color: #fff !important;
    }
</style>
<div class="layui-col-md12">
    <form class="layui-form" action="" lay-filter="form">
        {if isset($info.id)}
        <input type="hidden" name="id" value="{$info.id}">
        {/if}
        <div class="layui-card">
            <div class="layui-card-body">
                <div style=" width:800px;">
                    <div style="font-weight: 600;font-size: 18px;line-height: 50px;">转出商户信息</div>
                    <div style="display: flex;justify-content:space-between;">
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">商户公司：{$info.merchant_company}</span>
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">合同号：{$info.merchant_code}</span>
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">发生交易金额：{$info.balance/100}</span>
                    </div>
                    <div style="font-weight: 600;font-size: 18px;line-height: 50px;">待转入商户信息</div>
                    <div style="display: flex;justify-content:space-between;">
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">待转入商户公司：{$info.new_merchant_company}</span>
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">待转入合同号：{$info.new_merchant_code}</span>
                    </div>
                    <div style="display: flex;justify-content:space-between;">
                        <div style="font-weight: 600;font-size: 18px;line-height: 50px;">审核信息</div>
                        <div style="display: flex;justify-content:space-between;">
                            <span style=" width: 500px;line-height: 35px;font-size: 14px;">审核时间：{$info.suggest_time}</span>
                        </div>
                    </div>
                </div>
                {if empty($info.status)}
                <div class="">
                    <span class="">原因: </span>
                    <div class="">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="reason"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-layout-admin " style="width: 100%">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0px;text-align: center;">
                            <button class="layui-btn" lay-submit="" lay-filter="report">通过</button>
                            <button class="layui-btn layui-btn-danger" lay-submit="" lay-filter="noreport">不通过
                            </button>
                        </div>
                    </div>
                </div>
                {else/}
                <div class="">
                    <div style="display: flex;justify-content:space-between;">
                        <span style=" width: 500px;line-height: 35px;font-size: 14px;">审核状态：
                             {if $info.status==1}审核成功{else/}审核失败{/if}
                        </span>
                    </div>
                    <span class="">原因: </span>
                    <div class="">
                        <textarea placeholder="请输入内容" disabled class="layui-textarea" name="reason" >{$info.reason}</textarea>
                    </div>
                </div>
                {/if}
            </div>

        </div>
    </form>
</div>
{/block}

{block name="js"} <!--js处理区-->


<script>
    layui.use(['element', 'table', 'form', 'jquery', 'lucky', 'opTable'], function () {
        var element = layui.element;
        var form = layui.form;
        var table = layui.table;
        var $ = layui.jquery;
        var lucky = layui.lucky;
        var opTable = layui.opTable;
        form.render();

        form.on('submit(report)', function (data) {
            lucky.FormSubmit("{:url('report')}", data.field, true);
            return false;
        });
        form.on('submit(noreport)', function (data) {
            lucky.FormSubmit("{:url('noreport')}", data.field, true);
            return false;
        });
        /**
         * 关键词搜索树
         */
        form.on('submit(search)', function (obj) {
            lucky.CreateSearch(obj.field);
            return false;
        });
    });

</script>

{/block}
